<%@page contentType="text/html;charset=utf-8" %>
<%@taglib prefix="s" uri="/struts-tags" %> 
<script type="text/javascript">
function mg_showthreepayparamater(id,threepayid)
{
    var url = "mg/threepayparamater/show.do";
    var content = "model.id=" + id
				 +"&model.threepayid="+threepayid;
    var objectid = "mg_threepayparamater_div";
    sendXMLHttpRequest(url, content, objectid); 
}

function mg_listthreepayparamater(threepayid)
{
	 var url = "mg/threepayparamater/list.do";
     var objectid = "content";
     var content = "model.threepayid="+threepayid;
     sendXMLHttpRequest(url, content, objectid); 
}
</script>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5"></td>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td height="25" class="t1">
          <img src="images/small0.gif" width="14" height="12"> 您现在的位置&gt;&gt;<a href="javascript:void(0);" title="返回第三方支付管理" onclick="mg_listthreepayproviders();">第三方支付管理</a>&gt;&gt;第三方支付参数管理</td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td >
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="images/table_top_left.jpg" width="20" height="15" /></td>
            <td><img src="images/table_top_bg.jpg" width="770" height="15"/></td>
            <td align="right">
              <img src="images/table_top_right.jpg" width="20" height="15" /></td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td height="25" class="table_blue">
          <strong><img src="images/dot.jpg" width="13" height="9">第三方支付参数列表（第三方支付：<s:property value="threepayinfo.companyname"/>——<s:property value="threepayinfo.threepayname"/>） </strong>
          <span style="float:right;color:#000000;">        
          <button id="btn1" dojoType="dijit.form.Button" 
            onclick="mg_showthreepayparamater(-1,'<s:property value="model.threepayid"/>');">新增</button>
          &nbsp;&nbsp;
          </span>
          </td>
      </tr>   
      <tr>
      <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" class="table_g1" width="5%">序号</td>
        <td align="center" class="table_g2" width="10%">参数名</td>
        <td align="center" class="table_g2" width="15%"></td>
      </tr>
      
      <s:if test="list.size > 0" >
        <s:iterator value="list" status="stat">
        <tr onmouseover="this.style.background='#c0c0c0';" 
            onmouseout="this.style.background='#ffffff';"> 
          <td class="table_w1" align="center"><s:property value="#stat.index+1" /></td>
          <td class="table_w2" align="center"><s:property value="hashkey" /></td>
          <td class="table_w2" align="center">
            <a href="javascript:void(0);" 
              onclick="mg_showthreepayparamater(<s:property value="id" />,'<s:property value="model.threepayid"/>');">设置</a>
        </tr>    
        </s:iterator>
      </s:if>
      <s:else>
      <tr>
        <td class="table_w1" align="center" colspan="5">无</td>
      </tr>
      </s:else>
      <tr>
        <td class="table_w1" align="center" colspan="5">
			<button id="btn6" dojoType="dijit.form.Button" 
            onclick="mg_listthreepayproviders();">返回</button>
		</td>
      </tr>
      </table>
      </td>
      </tr>
      <tr> 
        <td background="images/table_bom_bg.jpg">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
              <img src="images/table_bom_left.jpg" width="20" height="15"></td>
            <td></td>
            <td align="right">
              <img src="images/table_bom_right.jpg" width="20" height="15"></td>
          </tr>
          </table>
        </td>
      </tr>
    </table>  
  </td>
  <td width="5"></td>
  </tr>
  </table>
  <div id="mg_threepayparamater_div"></div>  